iT邦幫忙

2023 iThome 鐵人賽

DAY 8
0
Mobile Development

App從開發到上架系列 第 8

Day8: iOS 開發:畫面建構(首頁) -HomePageViewController

  • 分享至 

  • xImage
  •  

今天要做HomeViewController的畫面:
我直接附上畫面Xib檔案的 Source Code:

<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
    <device id="retina6_12" orientation="portrait" appearance="light"/>
    <dependencies>
        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
        <capability name="Safe area layout guides" minToolsVersion="9.0"/>
        <capability name="System colors in document resources" minToolsVersion="11.0"/>
        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
    </dependencies>
    <objects>
        <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="HomeViewController" customModule="FoodDemo" customModuleProvider="target">
            <connections>
                <outlet property="btnResver" destination="Dta-R4-QaH" id="P9l-r3-yS3"/>
                <outlet property="imgCoin" destination="6ls-Gd-G9m" id="BBZ-yp-aEh"/>
                <outlet property="imgResver" destination="mFs-bl-CKd" id="tYr-DC-6zK"/>
                <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
            </connections>
        </placeholder>
        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
        <view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
            <rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
            <subviews>
                <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ddq-RH-SD6">
                    <rect key="frame" x="16" y="89" width="361" height="131"/>
                    <subviews>
                        <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="coin-fill" adjustsImageSizeForAccessibilityContentSizeCategory="YES" translatesAutoresizingMaskIntoConstraints="NO" id="6ls-Gd-G9m">
                            <rect key="frame" x="8" y="37.666666666666664" width="108.33333333333333" height="65.666666666666686"/>
                        </imageView>
                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Allen" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="NxK-uh-hgM">
                            <rect key="frame" x="8" y="0.0" width="42" height="21"/>
                            <fontDescription key="fontDescription" type="system" pointSize="17"/>
                            <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                            <nil key="highlightedColor"/>
                        </label>
                        <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ncr-hF-Zgz">
                            <rect key="frame" x="180" y="18.666666666666671" width="1" height="94"/>
                            <color key="backgroundColor" systemColor="systemBackgroundColor"/>
                            <constraints>
                                <constraint firstAttribute="width" constant="1" id="Rbu-CC-sp6"/>
                            </constraints>
                        </view>
                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="點數:999" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="42h-Ma-MVQ">
                            <rect key="frame" x="189" y="18" width="134" height="21"/>
                            <fontDescription key="fontDescription" type="system" pointSize="17"/>
                            <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                            <nil key="highlightedColor"/>
                        </label>
                        <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Pwh-Xo-SLz">
                            <rect key="frame" x="278" y="88" width="75" height="35"/>
                            <color key="tintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                            <state key="normal" title="Button"/>
                            <buttonConfiguration key="configuration" style="plain" title="兌換"/>
                        </button>
                    </subviews>
                    <color key="backgroundColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                    <constraints>
                        <constraint firstItem="42h-Ma-MVQ" firstAttribute="height" secondItem="ddq-RH-SD6" secondAttribute="height" multiplier="0.160305" id="0FQ-6r-17L"/>
                        <constraint firstItem="NxK-uh-hgM" firstAttribute="width" secondItem="ddq-RH-SD6" secondAttribute="width" multiplier="0.116343" id="2q3-Op-TZm"/>
                        <constraint firstAttribute="bottom" secondItem="Pwh-Xo-SLz" secondAttribute="bottom" constant="8" id="50o-5n-L9d"/>
                        <constraint firstItem="NxK-uh-hgM" firstAttribute="top" secondItem="ddq-RH-SD6" secondAttribute="top" id="5rc-m2-Qtr"/>
                        <constraint firstItem="6ls-Gd-G9m" firstAttribute="width" secondItem="ddq-RH-SD6" secondAttribute="width" multiplier="0.3" id="IYH-sg-xvR"/>
                        <constraint firstItem="6ls-Gd-G9m" firstAttribute="centerY" secondItem="ddq-RH-SD6" secondAttribute="centerY" constant="5" id="Nkt-eH-nuN"/>
                        <constraint firstItem="NxK-uh-hgM" firstAttribute="height" secondItem="ddq-RH-SD6" secondAttribute="height" multiplier="0.160305" id="Pt9-rF-yF4"/>
                        <constraint firstItem="Pwh-Xo-SLz" firstAttribute="width" secondItem="ddq-RH-SD6" secondAttribute="width" multiplier="0.207756" id="RxS-F6-p1d"/>
                        <constraint firstItem="NxK-uh-hgM" firstAttribute="leading" secondItem="ddq-RH-SD6" secondAttribute="leading" constant="8" id="UYe-fQ-tNG"/>
                        <constraint firstItem="ncr-hF-Zgz" firstAttribute="height" secondItem="ddq-RH-SD6" secondAttribute="height" multiplier="0.717557" id="XcJ-SG-Plg"/>
                        <constraint firstItem="42h-Ma-MVQ" firstAttribute="width" secondItem="ddq-RH-SD6" secondAttribute="width" multiplier="0.371191" id="aMa-Gl-kM8"/>
                        <constraint firstAttribute="trailing" secondItem="42h-Ma-MVQ" secondAttribute="trailing" constant="38" id="acx-uu-ouz"/>
                        <constraint firstItem="ncr-hF-Zgz" firstAttribute="centerY" secondItem="ddq-RH-SD6" secondAttribute="centerY" id="f3P-1n-5rK"/>
                        <constraint firstItem="42h-Ma-MVQ" firstAttribute="top" secondItem="ddq-RH-SD6" secondAttribute="top" constant="18" id="fkW-KM-FA7"/>
                        <constraint firstItem="6ls-Gd-G9m" firstAttribute="leading" secondItem="ddq-RH-SD6" secondAttribute="leading" constant="8" id="fpB-hG-vwo"/>
                        <constraint firstAttribute="trailing" secondItem="Pwh-Xo-SLz" secondAttribute="trailing" constant="8" id="g46-AT-aWk"/>
                        <constraint firstItem="Pwh-Xo-SLz" firstAttribute="height" secondItem="ddq-RH-SD6" secondAttribute="height" multiplier="0.267176" id="rcQ-oL-Uxa"/>
                        <constraint firstItem="6ls-Gd-G9m" firstAttribute="height" secondItem="ddq-RH-SD6" secondAttribute="height" multiplier="0.5" id="swZ-jG-ydJ"/>
                        <constraint firstItem="ncr-hF-Zgz" firstAttribute="centerX" secondItem="ddq-RH-SD6" secondAttribute="centerX" id="zQM-vb-NUW"/>
                    </constraints>
                </view>
                <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="3NF-O6-Qw9">
                    <rect key="frame" x="16" y="247" width="361" height="65"/>
                    <subviews>
                        <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Dta-R4-QaH">
                            <rect key="frame" x="42" y="15" width="75" height="35"/>
                            <state key="normal" title="Button"/>
                            <buttonConfiguration key="configuration" style="plain" title="訂位"/>
                        </button>
                        <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="cil-dinner" translatesAutoresizingMaskIntoConstraints="NO" id="mFs-bl-CKd">
                            <rect key="frame" x="8" y="13" width="39" height="39"/>
                            <constraints>
                                <constraint firstAttribute="width" secondItem="mFs-bl-CKd" secondAttribute="height" multiplier="1:1" id="6gm-0J-pU1"/>
                            </constraints>
                        </imageView>
                    </subviews>
                    <color key="backgroundColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                    <constraints>
                        <constraint firstItem="Dta-R4-QaH" firstAttribute="width" secondItem="3NF-O6-Qw9" secondAttribute="width" multiplier="0.207756" id="P61-vy-2JA"/>
                        <constraint firstItem="mFs-bl-CKd" firstAttribute="centerY" secondItem="3NF-O6-Qw9" secondAttribute="centerY" id="U36-MS-ptd"/>
                        <constraint firstItem="Dta-R4-QaH" firstAttribute="leading" secondItem="mFs-bl-CKd" secondAttribute="trailing" constant="-5" id="VO1-Gi-PCT"/>
                        <constraint firstItem="Dta-R4-QaH" firstAttribute="height" secondItem="3NF-O6-Qw9" secondAttribute="height" multiplier="0.538462" id="VrE-ji-SMf"/>
                        <constraint firstItem="mFs-bl-CKd" firstAttribute="leading" secondItem="3NF-O6-Qw9" secondAttribute="leading" constant="8" id="lkF-Au-7Ks"/>
                        <constraint firstItem="mFs-bl-CKd" firstAttribute="height" secondItem="3NF-O6-Qw9" secondAttribute="height" multiplier="0.6" id="nYk-9j-jzj"/>
                        <constraint firstItem="Dta-R4-QaH" firstAttribute="centerY" secondItem="3NF-O6-Qw9" secondAttribute="centerY" id="uNK-7I-ZVT"/>
                    </constraints>
                </view>
                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="類別" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="unb-Ge-DEA">
                    <rect key="frame" x="24" y="445" width="42" height="21"/>
                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
                    <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                    <nil key="highlightedColor"/>
                </label>
                <collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" dataMode="none" translatesAutoresizingMaskIntoConstraints="NO" id="tae-RT-F0J">
                    <rect key="frame" x="16" y="471" width="361" height="128"/>
                    <color key="backgroundColor" systemColor="systemGreenColor"/>
                    <collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="10" minimumInteritemSpacing="10" id="fgF-md-iD9">
                        <size key="itemSize" width="128" height="128"/>
                        <size key="headerReferenceSize" width="0.0" height="0.0"/>
                        <size key="footerReferenceSize" width="0.0" height="0.0"/>
                        <inset key="sectionInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/>
                    </collectionViewFlowLayout>
                </collectionView>
                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="其他" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vMf-dB-7C3">
                    <rect key="frame" x="24" y="626" width="42" height="21"/>
                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
                    <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                    <nil key="highlightedColor"/>
                </label>
                <scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="YHO-E5-Tf4">
                    <rect key="frame" x="16" y="650" width="361" height="128"/>
                    <subviews>
                        <collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" dataMode="none" translatesAutoresizingMaskIntoConstraints="NO" id="fWM-PY-O1J">
                            <rect key="frame" x="0.0" y="0.0" width="361" height="128"/>
                            <color key="backgroundColor" systemColor="systemBlueColor"/>
                            <color key="tintColor" systemColor="systemRedColor"/>
                            <collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="10" minimumInteritemSpacing="10" id="ViO-mi-ZN2">
                                <size key="itemSize" width="128" height="128"/>
                                <size key="headerReferenceSize" width="0.0" height="0.0"/>
                                <size key="footerReferenceSize" width="0.0" height="0.0"/>
                                <inset key="sectionInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/>
                            </collectionViewFlowLayout>
                        </collectionView>
                        <collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" dataMode="none" translatesAutoresizingMaskIntoConstraints="NO" id="yvo-vp-P8V">
                            <rect key="frame" x="0.0" y="128" width="361" height="128"/>
                            <color key="backgroundColor" systemColor="systemBackgroundColor"/>
                            <collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="10" minimumInteritemSpacing="10" id="NWp-LN-bmN">
                                <size key="itemSize" width="128" height="128"/>
                                <size key="headerReferenceSize" width="0.0" height="0.0"/>
                                <size key="footerReferenceSize" width="0.0" height="0.0"/>
                                <inset key="sectionInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/>
                            </collectionViewFlowLayout>
                        </collectionView>
                    </subviews>
                    <constraints>
                        <constraint firstItem="yvo-vp-P8V" firstAttribute="leading" secondItem="YHO-E5-Tf4" secondAttribute="leading" id="03U-Z7-QcU"/>
                        <constraint firstItem="fWM-PY-O1J" firstAttribute="top" secondItem="ibf-Ak-vA6" secondAttribute="top" id="0tw-37-GJT"/>
                        <constraint firstItem="yvo-vp-P8V" firstAttribute="height" secondItem="YHO-E5-Tf4" secondAttribute="height" id="BOk-L5-cCx"/>
                        <constraint firstItem="fWM-PY-O1J" firstAttribute="leading" secondItem="ibf-Ak-vA6" secondAttribute="leading" id="BfA-p8-WMN"/>
                        <constraint firstAttribute="trailing" secondItem="yvo-vp-P8V" secondAttribute="trailing" id="MC7-bE-eam"/>
                        <constraint firstItem="yvo-vp-P8V" firstAttribute="top" secondItem="fWM-PY-O1J" secondAttribute="bottom" id="NRj-FC-uGb"/>
                        <constraint firstItem="fWM-PY-O1J" firstAttribute="height" secondItem="YHO-E5-Tf4" secondAttribute="height" id="ct1-n3-cIO"/>
                        <constraint firstAttribute="bottom" secondItem="yvo-vp-P8V" secondAttribute="bottom" id="eJP-ge-IfN"/>
                        <constraint firstItem="fWM-PY-O1J" firstAttribute="trailing" secondItem="ibf-Ak-vA6" secondAttribute="trailing" id="f8y-TV-itZ"/>
                        <constraint firstItem="yvo-vp-P8V" firstAttribute="width" secondItem="YHO-E5-Tf4" secondAttribute="width" id="fSD-Tj-NEC"/>
                        <constraint firstItem="fWM-PY-O1J" firstAttribute="width" secondItem="YHO-E5-Tf4" secondAttribute="width" id="nZv-YI-SxH"/>
                    </constraints>
                    <viewLayoutGuide key="contentLayoutGuide" id="ibf-Ak-vA6"/>
                    <viewLayoutGuide key="frameLayoutGuide" id="nNz-7Q-zt1"/>
                </scrollView>
                <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="uvk-wx-TIq">
                    <rect key="frame" x="16" y="220" width="361" height="1"/>
                    <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                    <constraints>
                        <constraint firstAttribute="height" constant="1" id="YQI-0w-ngS"/>
                    </constraints>
                </view>
                <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="vCz-ln-YyY">
                    <rect key="frame" x="16" y="317" width="361" height="128"/>
                    <subviews>
                        <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="最近的訂位:" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="r64-iW-z6Y">
                            <rect key="frame" x="8" y="5" width="361" height="21"/>
                            <fontDescription key="fontDescription" type="system" pointSize="17"/>
                            <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                            <nil key="highlightedColor"/>
                        </label>
                        <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="6ca-oo-7T3">
                            <rect key="frame" x="0.0" y="-5" width="361" height="1"/>
                            <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                            <constraints>
                                <constraint firstAttribute="height" constant="1" id="RCe-lo-vti"/>
                            </constraints>
                        </view>
                    </subviews>
                    <color key="backgroundColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                    <constraints>
                        <constraint firstItem="r64-iW-z6Y" firstAttribute="height" secondItem="vCz-ln-YyY" secondAttribute="height" multiplier="0.164062" id="3L8-aD-AMp"/>
                        <constraint firstItem="r64-iW-z6Y" firstAttribute="width" secondItem="vCz-ln-YyY" secondAttribute="width" id="BYn-qK-s7x"/>
                        <constraint firstItem="r64-iW-z6Y" firstAttribute="leading" secondItem="vCz-ln-YyY" secondAttribute="leading" constant="8" id="qlH-ao-uhp"/>
                        <constraint firstItem="r64-iW-z6Y" firstAttribute="top" secondItem="vCz-ln-YyY" secondAttribute="top" constant="5" id="uii-Q2-A0W"/>
                    </constraints>
                </view>
            </subviews>
            <viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
            <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
            <constraints>
                <constraint firstItem="tae-RT-F0J" firstAttribute="width" secondItem="i5M-Pr-FkT" secondAttribute="width" multiplier="0.918575" id="0go-kC-cus"/>
                <constraint firstItem="vCz-ln-YyY" firstAttribute="top" secondItem="3NF-O6-Qw9" secondAttribute="bottom" constant="5" id="4MV-fW-weF"/>
                <constraint firstItem="6ca-oo-7T3" firstAttribute="centerX" secondItem="3NF-O6-Qw9" secondAttribute="centerX" id="DWn-qx-WBv"/>
                <constraint firstItem="vMf-dB-7C3" firstAttribute="width" secondItem="i5M-Pr-FkT" secondAttribute="width" multiplier="0.10687" id="EMp-lB-QXi"/>
                <constraint firstItem="ddq-RH-SD6" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" constant="30" id="ENc-AG-ejy"/>
                <constraint firstItem="vMf-dB-7C3" firstAttribute="top" secondItem="tae-RT-F0J" secondAttribute="bottom" constant="27" id="HoV-9Q-Ntt"/>
                <constraint firstItem="unb-Ge-DEA" firstAttribute="height" secondItem="i5M-Pr-FkT" secondAttribute="height" multiplier="0.0246479" id="L35-GW-1Tc"/>
                <constraint firstItem="unb-Ge-DEA" firstAttribute="leading" secondItem="r64-iW-z6Y" secondAttribute="leading" id="L60-Ao-Z83"/>
                <constraint firstItem="tae-RT-F0J" firstAttribute="height" secondItem="i5M-Pr-FkT" secondAttribute="height" multiplier="0.150235" id="NOw-vc-IrO"/>
                <constraint firstItem="YHO-E5-Tf4" firstAttribute="width" secondItem="i5M-Pr-FkT" secondAttribute="width" multiplier="0.918575" id="QiB-FP-dF2"/>
                <constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="YHO-E5-Tf4" secondAttribute="bottom" constant="40" id="RHB-Rj-KxL"/>
                <constraint firstItem="3NF-O6-Qw9" firstAttribute="centerX" secondItem="fnl-2z-Ty3" secondAttribute="centerX" id="TsY-Ix-QFD"/>
                <constraint firstItem="3NF-O6-Qw9" firstAttribute="top" secondItem="ddq-RH-SD6" secondAttribute="bottom" constant="27" id="UuJ-Vt-zlp"/>
                <constraint firstItem="YHO-E5-Tf4" firstAttribute="height" secondItem="i5M-Pr-FkT" secondAttribute="height" multiplier="0.150235" id="V1m-TI-d8I"/>
                <constraint firstItem="ddq-RH-SD6" firstAttribute="width" secondItem="i5M-Pr-FkT" secondAttribute="width" multiplier="0.918575" id="Vh7-tK-o2S"/>
                <constraint firstItem="uvk-wx-TIq" firstAttribute="centerX" secondItem="ddq-RH-SD6" secondAttribute="centerX" id="clH-DZ-F3d"/>
                <constraint firstItem="6ca-oo-7T3" firstAttribute="width" secondItem="3NF-O6-Qw9" secondAttribute="width" id="coe-d3-ecv"/>
                <constraint firstItem="ddq-RH-SD6" firstAttribute="height" secondItem="i5M-Pr-FkT" secondAttribute="height" multiplier="0.153756" id="d5a-7Y-bNZ"/>
                <constraint firstItem="tae-RT-F0J" firstAttribute="centerX" secondItem="fnl-2z-Ty3" secondAttribute="centerX" id="dUn-0k-y36"/>
                <constraint firstItem="YHO-E5-Tf4" firstAttribute="centerX" secondItem="fnl-2z-Ty3" secondAttribute="centerX" id="dZL-lf-lcd"/>
                <constraint firstItem="uvk-wx-TIq" firstAttribute="top" secondItem="ddq-RH-SD6" secondAttribute="bottom" id="er6-iZ-f1V"/>
                <constraint firstItem="6ca-oo-7T3" firstAttribute="top" secondItem="3NF-O6-Qw9" secondAttribute="bottom" id="f6s-7i-3tQ"/>
                <constraint firstItem="vCz-ln-YyY" firstAttribute="centerX" secondItem="3NF-O6-Qw9" secondAttribute="centerX" id="hQY-KR-LAD"/>
                <constraint firstItem="vCz-ln-YyY" firstAttribute="height" secondItem="i5M-Pr-FkT" secondAttribute="height" multiplier="0.150235" id="ijQ-wq-Ucp"/>
                <constraint firstItem="vMf-dB-7C3" firstAttribute="leading" secondItem="unb-Ge-DEA" secondAttribute="leading" id="jhy-A1-2Rt"/>
                <constraint firstItem="uvk-wx-TIq" firstAttribute="width" secondItem="ddq-RH-SD6" secondAttribute="width" id="jlX-Nv-uUH"/>
                <constraint firstItem="tae-RT-F0J" firstAttribute="top" secondItem="unb-Ge-DEA" secondAttribute="bottom" constant="5" id="lNz-9Y-NgM"/>
                <constraint firstItem="3NF-O6-Qw9" firstAttribute="height" secondItem="i5M-Pr-FkT" secondAttribute="height" multiplier="0.0762911" id="lzL-hS-aEw"/>
                <constraint firstItem="3NF-O6-Qw9" firstAttribute="width" secondItem="i5M-Pr-FkT" secondAttribute="width" multiplier="0.918575" id="mGe-DA-Yhk"/>
                <constraint firstItem="vMf-dB-7C3" firstAttribute="height" secondItem="i5M-Pr-FkT" secondAttribute="height" multiplier="0.0246479" id="mSU-A1-d3m"/>
                <constraint firstItem="unb-Ge-DEA" firstAttribute="top" secondItem="vCz-ln-YyY" secondAttribute="bottom" id="mpf-SU-lyG"/>
                <constraint firstItem="ddq-RH-SD6" firstAttribute="centerX" secondItem="fnl-2z-Ty3" secondAttribute="centerX" id="sCF-7R-Qc9"/>
                <constraint firstItem="unb-Ge-DEA" firstAttribute="width" secondItem="i5M-Pr-FkT" secondAttribute="width" multiplier="0.10687" id="uqI-se-6ZU"/>
                <constraint firstItem="vCz-ln-YyY" firstAttribute="width" secondItem="3NF-O6-Qw9" secondAttribute="width" id="zUt-7O-Xzm"/>
            </constraints>
            <point key="canvasLocation" x="61.832061068702288" y="-62.676056338028175"/>
        </view>
    </objects>
    <resources>
        <image name="cil-dinner" width="64" height="64"/>
        <image name="coin-fill" width="64" height="64"/>
        <systemColor name="systemBackgroundColor">
            <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
        </systemColor>
        <systemColor name="systemBlueColor">
            <color red="0.0" green="0.47843137254901963" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
        </systemColor>
        <systemColor name="systemGreenColor">
            <color red="0.20392156862745098" green="0.7803921568627451" blue="0.34901960784313724" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
        </systemColor>
        <systemColor name="systemRedColor">
            <color red="1" green="0.23137254901960785" blue="0.18823529411764706" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
        </systemColor>
    </resources>
</document>

成果https://ithelp.ithome.com.tw/upload/images/20230923/201403689xKKnb6yyZ.png


上一篇
Day7: iOS 開發:在App內導覽 - NavigationBar
下一篇
Day9: iOS 開發:畫面建構(首頁) - ScrollView的一些使用方法
系列文
App從開發到上架30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言